package javasec.contempt.dialogs;

import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;

public class TextWindow extends ApplicationWindow
{
	String text="";
	
	public TextWindow(String windowText)
	{
		super(null);
		text=windowText;
	}
	
	protected Control createContents(Composite parent)
	{
		parent.setSize(400,400);
		Text textBox=new Text(parent,SWT.MULTI|SWT.READ_ONLY|SWT.BORDER|SWT.WRAP|SWT.V_SCROLL);
		textBox.setText(text);
		textBox.setLayoutData(new GridData(GridData.FILL_BOTH));
		
		return parent;
	}
	
}
